<?php
// +----------------------------------------------------------------------
// | 牛逼网 [快乐 开放 游戏]
// +----------------------------------------------------------------------
// | Copyright (c) 2016 http://www.nniubi.com All rights reserved.
// +----------------------------------------------------------------------
// | Author: zhy <345933361@qq.com>
// +----------------------------------------------------------------------
namespace Home\Controller;

/**
 * 前台默认控制器
 * @author zhy <345933361@qq.com>
 */
class TourindexController extends HomeController
{
    /**
     * 小程序导览列表
     * @author zhy <345933361@qq.com>
     */
    public function index()
    {
        $article=M("admin_article")->where(array("status"=>1,"type"=>3))->field("id,title,img")->select();
        foreach($article as $key => $value){
            $article[$key]['img']=D('Admin/Upload')->getCover($value['img']);
        }
        echo json_encode($article);

    }
}
